# coding: utf-8
#
# 部署机器 132.228.28.169
#
# 告警项目
ALERT_CONFIG = {
    'CPU': (10, 2),
    'MEM': (40, 3),
    'DISK': (40, 1),
}

# 采集周期,秒
GATHER_INTERVAL = 180

# 主机列表
HOST = {
    '120.92.155.109': (65522, 'alpha', 'WWW.123.com', None, 3),
    '118.25.42.31': (65522, 'alpha', 'alpha@fantyou.com', None, 3),
    '118.25.42.122': (65522, 'alpha', 'alpha@fantyou.com', None, 3),
    '192.168.100.200': (22, 'developer', 'alpha@fantyou.com', None, 3),
}

# 生产环境配置
# HOST = {
#     '132.228.28.206': (22, '3gdpi', 'Dpi3g@1503.2018', None, 3),
#     '132.228.28.244': (22, '3gdpi', 'Dpi3g.2017@1503', None, 3),
# }


# 监控上报
THRESHOLD = 99

# 告警模板信息
ALERT_TEMPLATE_HEADER = '异常告警:主机%s项目%s监控项%s当前值%s阈值%s异常次数%s'
ALERT_TEMPLATE_BODY = '异常告警:主机%s,项目%s,监控项%s,当前值%s,阈值%s,异常次数%s'
ALERT_TEMPLATE_REC_HEADER = '告警恢复:主机%s项目%s监控项%s当前值%s阈值%s'
ALERT_TEMPLATE_REC_BODY = '告警恢复:主机%s,项目%s,监控项%s,当前值%s,阈值%s'
